package com.isoftstone.project.system.service;



import java.util.List;

public interface ISysUserRoleService {

	//保存用户和角色的ID
	void saveUserRole(String userId, String roleId) throws Exception ;

	//根据roleId删除Sys_Use_Role表中的信息
	void deleteByroleId(String roleId) throws Exception;

	void deleteByUserId(String userId);

	/**
	 * 根据用户名获取对应角色
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	List<String> getRolesByUserId(String userId)throws Exception;

	List<String> getRolesByroleId(String roleId)throws Exception;

    List<String> getAppsByUserId(String userId)throws Exception;
}
